loadFont
fun Program.loadFont(fileOrUrl: String, sizeInPoints: Double, characterSet: Set<Char> = defaultFontmapCharacterSet, contentScale: Double = this.drawer.context.contentScale): FontImageMap(source)
Load a FontImageMap
Parameters
fileOrUrl
a url of a font file, loaded with a synchronous request, faces loaded before with org.openrndr.draw.font.loadFaceSuspend are not requested again
sizeInPoints
the size at which to rasterize the glyphs in the font
characterSet
the characters to use when rasterizing the glyphs
contentScale
the content scale at which to rasterize the glyphs